package com.yiba.vpn.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.yiba.vpn.dto.WalletDto;
import com.yiba.vpn.model.ResultModel;
import com.yiba.vpn.service.WalletService;

/** 
* @author : tang 
* @createtime ：2018年2月7日 上午11:35:13 
* 
*/
@Api(value = "wfee钱包")
@RestController
@RequestMapping("/wallet")
public class WalletController {
	
	@Autowired
	private WalletService walletService;

	@RequestMapping(value="/save",method = RequestMethod.POST)
    @ApiOperation(value = "上传用户钱包")
    public ResponseEntity<ResultModel> save(@RequestBody WalletDto walletDto) {
        return walletService.save(walletDto);
    }
	
	
	
	
}
 